package com.liang.date;

public class Demo {
    public static void main(String[] args) {
        String str = "abcdefbcghjklm";

        int bcd = str.indexOf("bcg");
        System.out.println(bcd);

        String bc = str.replaceFirst("bc", "12");
        System.out.println(bc);

    }
}
